package com.xdcplus.web.common.enums.wip;

/**
 * @Description
 * @Author xyy
 * @Date 2023/5/5 14:05
 */
public enum WipUnPackCommandStatusEnum {
    Y("Y", "已下达"),
    N("N", "未下达"),
    E("E", "结束"),
    CANCEL("C", "已取消")
    ;

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    private String code;
    private String desc;

    WipUnPackCommandStatusEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    public static String getMsgByCode(String code) {
        for (WipUnPackCommandStatusEnum wipUnPackCommandStatusEnum : values()) {
            if(wipUnPackCommandStatusEnum.getCode().equals(code)) {
                return wipUnPackCommandStatusEnum.getDesc();
            }
        }
        return null;
    }

}
